# -*- coding: utf-8; mode: snippet -*-
# name: $http.post().success(function() {...}); (angular)
# key: ahttp
# group: angular
# contributor: Chen Bin <chenbin DOT sh AT gmail>
# --
$http.${1:post}(${2:url}).success(function(resp, status, headers, config) {
  console.log('resp=', resp);
  $0
}).error(function(reason, status, headers, config) {
  console.log('reason=', reason);
});
